home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13497 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: news.achilles.net!usenet
  2. From: ykhan@achilles.net (Yousuf Khan)
  3. Newsgroups: comp.lang.asm.x86,comp.lang.c,comp.lang.c++,comp.programming
  4. Subject: Re: Tough Question: Get a Hard-disk's Brand/Model No....
  5. Date: Tue, 26 Mar 1996 02:45:15 GMT
  6. Organization: Achilles Internet Services, Ottawa, ON
  7. Message-ID: <4j7m0g$lp6@centaur.achilles.net>
  8. References: <3144773A.256A@pacific.net.sg>
  9. NNTP-Posting-Host: p39-annex1.achilles.net
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. Allen Te <pcdirect@pacific.net.sg> wrote:
  13.  
  14. >I've seen a few programs that are actually able to detect
  15. >a hard-disk's brand/model.
  16. >Eg,  Conners AP540, Maxtor MT1200 etc....  
  17.  
  18. >Is that possible using some interrupts? Can someone give
  19. >me some source for doing that?
  20.  
  21. It's not possible with any standard interrupt services -- it's too
  22. specialized to bother to implement as some kind of an operating system
  23. API function. You would have to go into I/O ports that control the
  24. hard disk directly. 
  25.  
  26. Actually, I lie. You can do it through the API functions in SCSI
  27. device drivers, I believe. In IDE, you have to implement the port
  28. accesses yourself. I think I got some source code here, but it'll take
  29. some time for me to rummage around on how to do it. 
  30.  
  31. In the meantime, if somebody else can come up with the sources, then I
  32. can stop my rummaging, and I can use yours. :-) In other words, don't
  33. hold your breath on whether I can find the source code quickly.
  34.  
  35.                     Yousuf Khan
  36.  
  37.